import HttpUtil from '@/common/HttpUtil'

const ProdManageApi = {
      findPmPage(params){
        let postUrl = process.env.SURVEY_DOMAIN + '/gr/prod/findPage'
        return HttpUtil.postJSON(postUrl, params)
      },
      saveProdManage(params){
        let postUrl = process.env.SURVEY_DOMAIN + '/gr/prod/save'
        return HttpUtil.postJSON(postUrl, params)
      },
      getInfoProdManage(id){
        let postUrl = process.env.SURVEY_DOMAIN + '/gr/prod/getInfo/' + id
        return HttpUtil.get(postUrl, null)
      },
      deleteProdManage(id){
        let postUrl = process.env.SURVEY_DOMAIN + '/gr/prod/del/' + id
        return HttpUtil.delete(postUrl, null)
      },
      findAfPage(params){
        let postUrl = process.env.SURVEY_DOMAIN + '/gr/prod/af/findPage'
        return HttpUtil.postJSON(postUrl, params)
      },
      saveProdAfManage(params){
        let postUrl = process.env.SURVEY_DOMAIN + '/gr/prod/af/save'
        return HttpUtil.postJSON(postUrl, params)
      },
      getInfoProdAfManage(id){
        let postUrl = process.env.SURVEY_DOMAIN + '/gr/prod/af/getInfo/' + id
        return HttpUtil.get(postUrl, null)
      },
      deleteProdAfManage(id){
        let postUrl = process.env.SURVEY_DOMAIN + '/gr/prod/af/del/' + id
        return HttpUtil.delete(postUrl, null)
      },
      findGmPage(params){
        let postUrl = process.env.SURVEY_DOMAIN + '/gr/prod/gm/findPage'
        return HttpUtil.postJSON(postUrl, params)
      },
      saveProdGmManage(params){
        let postUrl = process.env.SURVEY_DOMAIN + '/gr/prod/gm/save'
        return HttpUtil.postJSON(postUrl, params)
      },
      getInfoProdGmManage(id){
        let postUrl = process.env.SURVEY_DOMAIN + '/gr/prod/gm/getInfo/' + id
        return HttpUtil.get(postUrl, null)
      },
      deleteProdGmManage(id){
        let postUrl = process.env.SURVEY_DOMAIN + '/gr/prod/gm/del/' + id
        return HttpUtil.delete(postUrl, null)
      },
      findPcPage(params){
        let postUrl = process.env.SURVEY_DOMAIN + '/gr/prod/pc/findPage'
        return HttpUtil.postJSON(postUrl, params)
      },
      saveProdPcManage(params){
        let postUrl = process.env.SURVEY_DOMAIN + '/gr/prod/pc/save'
        return HttpUtil.postJSON(postUrl, params)
      },
      getInfoProdPcManage(id){
        let postUrl = process.env.SURVEY_DOMAIN + '/gr/prod/pc/getInfo/' + id
        return HttpUtil.get(postUrl, null)
      },
      deleteProdPcManage(id){
        let postUrl = process.env.SURVEY_DOMAIN + '/gr/prod/pc/del/' + id
        return HttpUtil.delete(postUrl, null)
      },
      findThPage(params){
        let postUrl = process.env.SURVEY_DOMAIN + '/gr/prod/th/findPage'
        return HttpUtil.postJSON(postUrl, params)
      },
      saveProdThManage(params){
        let postUrl = process.env.SURVEY_DOMAIN + '/gr/prod/th/save'
        return HttpUtil.postJSON(postUrl, params)
      },
      getInfoProdThManage(id){
        let postUrl = process.env.SURVEY_DOMAIN + '/gr/prod/th/getInfo/' + id
        return HttpUtil.get(postUrl, null)
      },
      deleteProdThManage(id){
        let postUrl = process.env.SURVEY_DOMAIN + '/gr/prod/th/del/' + id
        return HttpUtil.delete(postUrl, null)
      },
      findYftPage(params){
        let postUrl = process.env.SURVEY_DOMAIN + '/gr/prod/yft/findPage'
        return HttpUtil.postJSON(postUrl, params)
      },
      saveProdYftManage(params){
        let postUrl = process.env.SURVEY_DOMAIN + '/gr/prod/yft/save'
        return HttpUtil.postJSON(postUrl, params)
      },
      getInfoProdYftManage(id){
        let postUrl = process.env.SURVEY_DOMAIN + '/gr/prod/yft/getInfo/' + id
        return HttpUtil.get(postUrl, null)
      },
      deleteProdYftManage(id){
        let postUrl = process.env.SURVEY_DOMAIN + '/gr/prod/yft/del/' + id
        return HttpUtil.delete(postUrl, null)
      },

}
export default ProdManageApi
